package com.jic.market.service;

import com.jic.market.entity.PatchGrouponMerchantEntity;
import com.jic.market.request.PatchGrouponMerchantRequest;
import com.jic.market.request.PromotionMerchantRequest;
import com.jic.market.response.PageResponse;
import com.jic.market.response.PatchGrouponMerchantResponse;
import com.jic.market.response.PromotionMerchantResponse;

import java.util.List;

/**
* 商家店铺关系表
* @author : guohuayong
* @email : 
* @since : 2020-01-14 08:00:40
* @version : v1.0.0
*/
public interface PatchGrouponMerchantService {
    PageResponse<PatchGrouponMerchantResponse> listByPage(PatchGrouponMerchantRequest request);


    Integer deleteByPromotionId(PatchGrouponMerchantRequest id);

    Integer saveBatchByPromotionId(List<PatchGrouponMerchantRequest> pomotionList);

    Integer deleteById(Long id);

    /**
     * 查询所有的商家店铺
     * @param condition
     * @return
     */
    List<PatchGrouponMerchantEntity> findAll(PatchGrouponMerchantEntity condition);

    /**
     * 插入商家
     * @param condition
     * @return
     */
    Integer insert(PatchGrouponMerchantEntity condition);

    int insertBatch(List<PatchGrouponMerchantEntity> patchGrouponMerchantEntityList);
}